<?php
/**
 * Created by PhpStorm.
 * User: lijie
 * Date: 2018/10/3
 * Time: 13:46
 */
namespace app\api\model;

use think\Model;

class CouMem extends Model{

    /**
     * Notes:  查看优惠券列表
     * Create Date: 2018/10/23
     * Create by :topqiang
     */
    public function getMyCoupon($data,$pagenum=1,$listNum=10)
    {
        return $this->where($data)->order("ctime desc")->page($pagenum,$listNum)->select();
    }

    /**
     * 查看优惠券详情
     * @author topqiang
     * @DateTime 2018-09-06T17:02:09+0800
     * @param    [type]                   $param [description]
     * @return   [type]                          [description]
     */
    public function coumemInfo($param)
    {
        return $this->where($param)->find();
    }


}